﻿<UserControl x:Class="none.Prada.MyControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.10.0"
             mc:Ignorable="d" Name="MyToolWindow"
             Background="{DynamicResource {x:Static vsfx:VsBrushes.ToolWindowBackgroundKey}}" Width="300" Height="412">
    <Grid Width="300">
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFF8C64C" Offset="0" />
                <GradientStop Color="White" Offset="1" />
            </LinearGradientBrush>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="290*" />
            <RowDefinition Height="10*" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Vertical" Margin="0,0,0,-42" Grid.RowSpan="2" Width="300"></StackPanel>
        <Grid Name="grid1" Margin="12,12,0,-28" Grid.RowSpan="2" Width="300">
            <Label Content="Process list:" Height="28" Name="LblProcesses" Margin="6,156,-106,244" />
            <Button Content="Attach" Height="23" HorizontalAlignment="Left" Margin="6,372,0,0" Name="BtnAttachProcess" VerticalAlignment="Top" Width="94" Click="BtnAttachProcess_Click" />
            <Button Content="Get Procs" Height="23" HorizontalAlignment="Left" Margin="6,343,0,0" Name="BtnGetProcesses" VerticalAlignment="Top" Width="94" Click="BtnGetProcesses_Click" />
            <ListBox SelectionMode="Multiple" Height="143" HorizontalAlignment="Left" Margin="6,190,0,0" Name="LibProcesses" VerticalAlignment="Top" Width="264" ItemsSource="{Binding}" DataContext="{Binding}" SelectionChanged="LibProcesses_SelectionChanged">
                <ListBox.ItemContainerStyle>
                    <Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource {x:Type ListBoxItem}}">
                        <EventSetter Event="MouseDoubleClick" Handler="ListBoxItem_MouseDoubleClick"/>
                    </Style>
                </ListBox.ItemContainerStyle>
            </ListBox>
            <CheckBox Content="Only W3WP Processes" Height="16" HorizontalAlignment="Left" Margin="106,343,0,0" Name="CkbOnlyW3WP" VerticalAlignment="Top" IsChecked="True" />
            <Label Content="WADA - W3WP Advanced Attacher" Height="28" HorizontalAlignment="Left" Name="LblTitle" VerticalAlignment="Top" Width="250" FontSize="14" FontWeight="Bold" />
            <ComboBox Height="23" HorizontalAlignment="Left" Margin="6,65,0,0" Name="CmbApplicationPools" VerticalAlignment="Top" Width="264" SelectionChanged="CmbApplicationPools_SelectionChanged" />
            <Label Content="Application Pools:" Height="28" HorizontalAlignment="Left" Margin="6,36,0,0" Name="LblAppPool" VerticalAlignment="Top" />
            <ComboBox Height="23" HorizontalAlignment="Left" Margin="6,125,0,0" Name="CmbIdentities" VerticalAlignment="Top" Width="264" SelectionChanged="CmbIdentities_SelectionChanged" />
            <Label Content="Identities:" Height="28" HorizontalAlignment="Left" Margin="6,97,0,0" Name="LblIdentities" VerticalAlignment="Top" />
        </Grid>
    </Grid>
</UserControl>
